﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>绿色供应链管理系统 - 注册</title>
    <meta name="keywords" content="绿色供应链管理系统,注册">
    <meta name="description" content="绿色供应链管理系统,注册">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/resources/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/resources/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/resources/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/resources/css/animate.min.css" rel="stylesheet">
    <link href="/resources/css/style.min.css?v=4.0.0" rel="stylesheet">
    <base target="_blank">
    <script>if (window.top !== window.self) { window.top.location = window.location; }</script>
</head>

<body class="gray-bg">
    <div class="middle-box text-center loginscreen   animated fadeInDown" style="width:400px;">
        <div>
            <div>
                <h3 class="logo-name">GSCM</h3>
            </div>
            <h3>绿色供应链系统</h3>
            <p>创建一个GSCM新账户</p>
            <div>
                <form role="form" action='@Url.Action("SubmitRegiste")' method="post" id="form-user-register">
                    <div style="float:left; width:190px;">
                        <div class="form-group">
                            <input type="text" class="form-control" name="companyName" placeholder="请输入企业名称" required="">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" name="shortName" placeholder="请输入名称简写" required="">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" name="identityNumber" placeholder="请输入纳税人识别号" required="">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" name="telPhone" placeholder="请输入联系人电话" required="">
                        </div>

                    </div>
                    <div style="float:left;width:190px; margin-left:10px;">
                        <div class="form-group">
                            <input type="text" class="form-control" name="email" placeholder="请输入企业邮箱" required="">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" name="contacter" placeholder="请输入企业联系人" required="">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" name="userDisplayName" placeholder="请输入登录用户姓名" required="">
                        </div>
                        <div class="form-group">
                            <input type="password" class="form-control" name="userPassword" placeholder="请输入登录用户密码" required="">
                        </div>
                    </div>
                    <div style="float:left; width:100%">
                        <div class="form-group text-left">
                            <div class="checkbox i-checks">
                                <label class="no-padding">
                                    <input type="checkbox"><i></i> 我同意注册协议
                                </label>
                            </div>
                        </div>
                        <button type="button" class="btn btn-primary block full-width m-b" id="btn_register">注 册</button>
                        <p class="text-muted text-center">
                            <small>已经有账户了？</small><a href='@Url.Action("Index")' target="_self">点此登录</a>
                        </p>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script src="/resources/js/jquery.min.js?v=2.1.4"></script>
    <script src="/resources/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/resources/js/plugins/iCheck/icheck.min.js"></script>
    <script src="/resources/script/jquery.form.js"></script>
    <script type="text/javascript" src="/resources/script/configBase.js"></script>
    <script type="text/javascript" src="/resources/script/engine.js"></script>
    <script type="text/javascript" src="/resources/script/common.js"></script>
    <script src="/resources/script/json2.js"></script>
    <script>
        $(document).ready(function () { $(".i-checks").iCheck({ checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green", }) });

        $("#btn_register").click(function () {
            if ($('#form-user-register').valid()) {
                $("#form-user-register").ajaxSubmit({
                    datatype: "json",
                    data: $('#form-user-register').serialize(),
                    success: function (result) {
                        if (result.code == 0) {
                            dcAlert(result.message, 0, 1, function () {
                                $(".layer-dialog-close-btn").click();
                                window.location.href = result.data;
                            });
                        }
                        else {
                            dcAlert(result.message, 0, 2);
                        }
                    }
                });
            }
        });
    </script>
</body>
</html>